import { Button } from 'antd-mobile';
import React from 'react';

import useUpdate from './自定义hooks/useUpdate'


const Index:React.FC<any> = (props)=> {
  const update = useUpdate();

  return (
    <div style={{padding: 50}}>
      <div>时间：{Date.now()}</div>
      <Button color='primary' onClick={update}>更新时间</Button>
    </div>
  );
}

export default Index;
